package designpattern.abstractfactory;

import designpattern.abstractfactory.factory.ColorFactory;
import designpattern.abstractfactory.factory.PriceFactory;
import designpattern.abstractfactory.generator.FactoryGenerator;
import designpattern.abstractfactory.service.Color;
import designpattern.abstractfactory.service.Price;
import designpattern.abstractfactory.service.impl.MinPrice;
import designpattern.abstractfactory.service.impl.Red;

public class Main {
    public static void main(String[] args){
       // Shape shape = FactoryGenerator.getFactory(ShapeFactory.class).getShape(Rectangle.class);
        //shape.draw();

        Color color = FactoryGenerator.getFactory(ColorFactory.class).getColor(Red.class);
        color.fill();

        Price price = FactoryGenerator.getFactory(PriceFactory.class).getPrice(MinPrice.class);
        price.getPrice();
    }
}
